-
-
Notifications
You must be signed in to change notification settings - Fork 121
[Vanilla Fix]Fix the bug that units keep attacking ground after target wall has been destroyed by adjacent damage/crush/wave damage #1861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
|
Nightly build for this pull request:
This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build. |
| enum { SkipGameCode = 0x73B074 }; | ||
|
|
||
| GET(CellClass*, pCell, EDI); | ||
| reinterpret_cast<void(__thiscall*)(AbstractClass*)>(0x70D4A0)(pCell);// pCell->BecomeUntargetable(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already added to yrpp.
| pThis->DamageWall(200); | ||
|
|
||
| if (pThis->OverlayTypeIndex == -1) | ||
| reinterpret_cast<void(__thiscall*)(AbstractClass*)>(0x70D4A0)(pThis);// pThis->BecomeUntargetable(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
| pCell->DamageWall(damage); | ||
|
|
||
| if (pCell->OverlayTypeIndex == -1) | ||
| reinterpret_cast<void(__thiscall*)(AbstractClass*)>(0x70D4A0)(pCell);// pCell->BecomeUntargetable(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
| pThis->DamageWall(RulesExt::Global()->AdjacentWallDamage); | ||
|
|
||
| if (pThis->OverlayTypeIndex == -1) | ||
| reinterpret_cast<void(__thiscall*)(AbstractClass*)>(0x70D4A0)(pThis);// pThis->BecomeUntargetable(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
just a bugfix